﻿<%@ Page Language="C#" MasterPageFile="~/ScenarioMasterPage.master" Title="Untitled Page" %>

<script runat="server">

	protected void Page_Load(object sender, EventArgs e)
	{
		MyConfig1Section sec = (MyConfig1Section)ConfigurationManager.GetSection("myConfig1");

		StringBuilder sbInfo = new StringBuilder();

		sbInfo.Append("<table><tr><th>PropKey</th><th>PropValue</th></tr>");
		foreach (ConfigProperty p in sec.ConfigProperties)
		{
			sbInfo.AppendFormat("<tr><td>{0}</td><td>{1}</td></tr>", p.PropKey, p.PropValue);
		}
		sbInfo.Append("</table>");

		RunningInfo.Text = sbInfo.ToString();
	}
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitleContentPlaceHolder" Runat="Server">
Scenario 1
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SubTitleContentPlaceHolder" Runat="Server">
Scenario 1
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="UsedForContentPlaceHolder" Runat="Server">
<code>
&lt;myConfig1&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;myConfigProperties&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;myConfigProperty propKey="prop1" propValue="value1" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;myConfigProperty propKey="prop2" propValue="value2" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/myConfigProperties&gt;<br />
&lt;/myConfig1&gt;
</code>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PrototypeContentPlaceHolder" Runat="Server">
syste.web/compilation
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="RunningInformationPlaceHolder" Runat="Server">
<asp:Label ID="RunningInfo" runat="server"></asp:Label>
</asp:Content>
